// JavaScript Document

var image = new Array(
					  "images/1.jpg",
					  "images/2.jpg",
					  "images/3.jpg",
					  "images/4.jpg",
					  "images/5.jpg",
					  "images/6.jpg"
					  )
					 /* "images/3page-img20.jpg",
		   			  "images/3page-img21.jpg",
   					  "images/3page-img22.jpg",
					  "images/3page-img23.jpg",
					  "images/3page-img24.jpg"*/

    var imgNumber = 1
    var numberOfImg = image.length
    function previousImage() {
        if (imgNumber > 1) {
            imgNumber = imgNumber - 1;
        }
        else {
            imgNumber = numberOfImg
        }
		
        document.slideImage.src = image[imgNumber - 1]
		
    }
    function nextImage() {
		
        if (imgNumber < numberOfImg) {
            imgNumber++
        }
        else {
            imgNumber = 1
        }	
	/*	if ( imgNumber == 7 )
		{
			document.slideImage.src = image[1]
			document.slideImage2.src = image[7]
			document.slideImage3.src = image[8]
		}
		else if ( imgNumber == 8 )
		{
			document.slideImage.src = image[2]
			document.slideImage2.src = image[1]
			document.slideImage3.src = image[8]
		}*/	
	        document.slideImage.src = image[imgNumber - 1]
			
    }
	
    if (document.images)
	{
        var image1 = new Image()
        image1.src = "images/1.jpg"
        var image2 = new Image()
        image2.src = "images/2.jpg"
        var image3 = new Image()
        image3.src = "images/3.jpg"
        var image4 = new Image()
        image4.src = "images/4.jpg"
        var image5 = new Image()
        image5.src = "images/5.jpg"
        var image6 = new Image()
        image6.src = "images/6.jpg"
       
    }